import defaultSettings from '@/settings'

const title = defaultSettings.title || '管理后台'

export default function getPageTitle(pageTitle, isShare) {
  if (pageTitle) {
    return `${pageTitle}${isShare ? '' : ` - ${title}`}`
  }
  return `${isShare ? '' : `${title}`}`
}
